import request from '@/utils/request'

// 查询分红记录列表
export function listStockroomRecords(query) {
  return request({
    url: '/admin/stockroomRecords/list',
    method: 'get',
    params: query
  })
}

// 查询分红记录详细
export function getStockroomRecords(id) {
  return request({
    url: '/admin/stockroomRecords/' + id,
    method: 'get'
  })
}

// 新增分红记录
export function addStockroomRecords(data) {
  return request({
    url: '/admin/stockroomRecords',
    method: 'post',
    data: data
  })
}

// 修改分红记录
export function updateStockroomRecords(data) {
  return request({
    url: '/admin/stockroomRecords',
    method: 'put',
    data: data
  })
}

// 删除分红记录
export function delStockroomRecords(id) {
  return request({
    url: '/admin/stockroomRecords/' + id,
    method: 'delete'
  })
}
